package cn.com.java.mapper;

import cn.com.java.model.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 查询父级菜单
     * @return
     */
    List<SysMenu> listByParents(@Param("viewFlag") boolean viewFlag);

    List<SysMenu> getByParentIds(@Param("parentIds") Set<Long> parentIds);

    List<SysMenu> findMensBySysRoleId(@Param("sysRoleId") Long sysRoleId);
}